import { ref } from 'vue'
import XtxGuess from '@/components/XtxGuess.vue'

export const useXtxGuess = () => {
  // 获取猜你喜欢组件实例
  const guess = ref<InstanceType<typeof XtxGuess>>()
  const onScrollToLower = () => {
    guess.value?.getGuess()
  }
  return { guess, onScrollToLower }
}
